import {
    createRouter,
    createWebHashHistory
} from "vue-router";
const routes = [

    {
        path: '/welfare', //联赛福利
        component: () => import('@/views/welfare/index.vue'),
        children: [{
                path: '',
                redirect: '/pool'
            },
            {
                path: '/pool', //奖池
                name: 'pool',
                component: () => import('@/views/welfare/pool.vue')
            },
            {
                path: '/trenchCeremony', //壕礼
                name: 'trenchCeremony',
                component: () => import('@/views/welfare/trenchCeremony.vue')
            },
        ]
    },
    {
        path: '/ceremony', //春季联赛
        component: () => import('@/views/ceremony/index.vue'),
    },
    {
        path: '/list',
        component: () => import('@/views/list/index.vue'),
        children: [{
                path: '',
                redirect: '/userList'
            }, {
                path: '/userList', //最佳神壕
                name: 'userList',
                component: () => import('@/views/list/userList.vue')
            },
            {
                path: '/anchorList', //最佳主播
                name: 'anchorList',
                component: () => import('@/views/list/anchorList.vue')
            },
            {
                path: '/guildList', //最佳公会
                name: 'guildList',
                component: () => import('@/views/list/guildList.vue')
            },
        ]
    }
]
const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router;
